package com.lovo.sheyingback.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 图文中的图片
 */
@Data
@NoArgsConstructor
public class Image implements Serializable {
    private Integer id;
    private Integer index;
    private String path;
    private Content content;
    private LocalDateTime createDate;

    public Image(String path) {
        this.path = path;
    }

    public Image(Integer index, String path, Content content, LocalDateTime createDate) {
        this.index = index;
        this.path = path;
        this.content = content;
        this.createDate = createDate;
    }
}
